@charset "utf-8";

/* public */
.fn-left {
  float: left;
}
.fn-right {
  float: right;
}
.hide {
  display: none;
}
.fn-ml10 {
  margin-left: 10px;
}
.fn-ml20 {
  margin-left: 20px;
}
.fn-mr5 {
  margin-right: 5px;
}

*, :before, :after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* 重设滚动条样式 */
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.4);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: rgba(100, 100, 100, 0.6);
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(120, 120, 120, 0.9);
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;
  background: #555;
  font-size: 12px;
}
body, button, input, select, textarea {
  font-family: "Helvetica Neue", Helvetica,Hiragino Sans GB;
}
img {
  max-width: none;
}

#backing {
  position: fixed;
  z-index: -10;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  overflow: hidden;
}

.wrapper {
  height: 100%;
  cursor: default;
  overflow: hidden;
}
.container {
  padding: 20px;
}
.container:before, .container:after {
  content: " ";
  display: table
}
.container:after {
  clear: both
}

.toolbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  padding-left: 0;
  padding-right: 0;
  background-color: rgba(100, 100, 100, 0.6);
  border-bottom: 1px solid #000;
  &-item {
    position: relative;
    float: left;
    min-width: 40px;
    height: 49px;
    padding: 0 7px;
    text-align: center;
    .name {
      display: block;
      margin-top: 2px;
      color: #fff;
    }
    &.fn-right {
      float: right;
    }
    &.stat-success {
      cursor: pointer;
      background: rgb(130, 167, 52);
    }
    &.current {
      background-color: rgba(226, 166, 60, 0.8)
    }
    &:not(.current):not(.stat-success):hover {
      background-color: rgba(100, 100, 100, 0.8);
      cursor: pointer;
    }
  }
  .glyphicon {
    display: inline-block;
    height: 16px;
    margin-top: 7px;
    font-size: 16px;
    color: #fff;
    vertical-align: middle;
    text-shadow: 1px 1px 0px #666;
  }
  .desc {
    color: #fff;
    font-size: 14px;
    display: inline-block;
    text-shadow: 1px 1px 0px #333;
    padding-left: 8px;
    vertical-align: middle;
  }
  .separate {
    float: left;
    border-right: 1px dotted #ccc;
    width: 1px;
    height: 40px;
    margin: 5px 8px 0 8px;
  }
  .dropdown-menu {
    text-align: left;
    &:not(.home) {
      .glyphicon {
        &:after {
          content: '+';
          padding-left: 5px;
          font-size: 14px;
          color: #fff;
          vertical-align: top;
        }
      }
    }
  }
  .home {
    padding-bottom: 0;
  }
}

.tooltip {
  white-space: nowrap;
}

.main {
  color: #fff;
  position: absolute;
  left: 0;
  right: 0;
  top: 50px;
  bottom: 0;
  overflow: hidden;
}

.ruler-x {
  position: absolute;
  left: 20px;
  right: 0;
  top: 0;
  height: 20px;
  background-image: url('../img/ruler_x.png');
  background-color: rgba(255, 255, 255, .2);
  background-repeat: repeat;
}

.scale {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 10px;
  line-height: normal;
  color: #000;
}

.ruler-y {
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 0;
  width: 20px;
  background-image: url('../img/ruler_y.png');
  background-color: rgba(255, 255, 255, .2);
  background-repeat: repeat;
}
.main_right {
  position: absolute;
  z-index: 1;
  left: 20px;
  right: 0;
  top: 20px;
  bottom: 20px;
}

.main_right_con {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background-color: rgba(255, 255, 255, 0);
}

.image-process-cover {
  background-color: rgba(238, 238, 238, 0);
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  &.mapCursor {
    cursor: crosshair;
  }
  .resizing {
    cursor: nw-resize;
    .rect{
      cursor: nw-resize !important;
    }
  }
  &.lineMovingX {
    cursor: row-resize !important;
    .rect {
      cursor: row-resize !important;
    }
  }
  &.lineMovingY {
    cursor: col-resize !important;
    .rect {
      cursor: col-resize !important;
    }
  }
}

.rect {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  border: 1px solid #000;
  background-color: rgba(220, 220, 200, 0.5);
  .resize {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 8px;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: nw-resize;
    border-radius: 8px 0 0 0;
  }
  .setting {
    position: absolute;
    left: -1px;
    top: -16px;
    width: 16px;
    height: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    border-radius: 2px 2px 0 0;
    text-align: center;
  }
  .setting-area {
     position: absolute;
     left: -1px;
     top: -100px;
     right: 0;
     padding: 10px 10px 0 10px;
     min-width: 150px;
     height: 76px;
     border-radius: 3px;
     background-color: rgba(0, 0, 0, 0.5);
     cursor: default;
     color: #ddd;
     text-shadow: 1px 1px 0px #333;
     box-shadow: 2px 2px 7px #112;
   }
}
.rect-focus {
  border-color: #ff2222;
  .setting {
    display: block;
    .glyphicon {
      margin-left: 1px;
    }
  }
}

input.rect-input {
  border-radius: 0;
  border-color: rgba(240, 240, 240, 0.3);
  color: #fff;
  text-shadow: 1px 1px 0px #333;
  height: 16px;
  width: 94%;
  line-height: normal;
  padding: 0 2px;
  margin: 0;
  font-size: 12px;
  box-shadow: none;
  background-color: rgba(220, 220, 220, 0.5);
  &:focus {
    border-color: rgba(240, 240, 240, 0.5);
    box-shadow: none;
  }
}

.rect-url {
  position: absolute;
  left: 10px;
  top: 6px;
  right: 10px;
}
.rect-open {
  position: absolute;
  left: 10px;
  top: 30px;
  right: 10px;
  [checkbox] {
    margin-top: -2px;
  }
}
.rect-width-height {
  position: absolute;
  left: 10px;
  top: 50px;
  right: 10px;
  .rect-input {
    width: 36px;
  }
}
.rect-error {
  background-color: rgba(255, 0, 0, 0.4);;
}
.lineX {
  position: absolute;
  left: 0;
  top: 10px;
  right: 0;
  border-top: 1px solid #4AFFFF;
  height: 3px;
  cursor: row-resize;
}
.lineY {
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  border-left: 1px solid #4AFFFF;
  width: 3px;
  cursor: col-resize;
}
.line-focus {
  border-color: #ff2222;
}
.image-wrapper {
  margin: 0 auto;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  overflow: auto;
}
.addImg {
  position: absolute;
  width: 200px;
  height: 60px;
  line-height: 52px;
  text-align: center;
  font-size: 24px;
  &.uninit {
    display: none;
  }
}

.tool-item {
  background: #333;
  margin-bottom: 3px;
}

.statusBar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20px;
  color: #fff;
  text-shadow: 1px 1px 0px #000;
  padding-left: 25px;
}
.inputing input[type=text] {
  border-radius: 0;
  border-color: rgba(240, 240, 240, 0.9);
  color: #FF0;
  text-shadow: 1px 1px 0px #000;
  height: 14px;
  width: 30px;
  line-height: normal;
  padding: 0 3px;
  margin: 0;
  font-size: 11px;
  box-shadow: none;
  background-color: rgba(220, 220, 220, 0);
  &:focus {
    border-color: rgba(240, 240, 240, 0.9);
    box-shadow: none;
  }
}
.rect-link input[type=text] {
  width: 200px;
}
.status-span {
  display: inline-block;
  vertical-align: middle;
  margin-left: 5px;
  font-size: 12px;
  letter-spacing: 1px;
  white-space: nowrap;
  max-width: 500px;
}
.rect-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  background-color: rgba(0, 0, 0, 0.5);
}

#overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, .2);
  z-index: 100;
  display: none;
}

/* text zone */
.textzone {
  position: absolute;
  left: 100px;
  top: 100px;
  z-index: 1;
  border: 1px solid #42A72E;
  background: transparent;
  width: 100px;
  height: 100px;
  textarea {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border: none;
    background: transparent;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    font: 12px/1.5 'simsun';
  }
  .cover {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(255,255,255,0);
    z-index: 2;
  }
  .resize_textarea {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 8px;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: nw-resize;
    border-radius: 8px 0 0 0;
    z-index: 3;
  }
  .setting_textarea, .edit_textarea {
    position: absolute;
    right: -1px;
    top: -16px;
    width: 16px;
    height: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    border-radius: 2px 2px 0 0;
    text-align: center;
    color: #fff;
  }
  .preview_frame {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    iframe{
      border: none;
      width: 100%;
      height: 100%;
    }
  }
}
.textzone-focus {
  border-color: #ff2222;
}
.textzone-error {
  background-color: rgba(255, 0, 0, 0.4);;
}

/* settings */
.dialogWrap {
  margin-top: -3px;
  width: 500px;
  min-height: 300px;
}
.tab_trigger {
  background: #f6f6f6;
  width: 100%;
}
.tab_tigger_item {
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 5px 26px;
  display: inline-block;
  float: left;
  cursor: pointer;
  color: #333;
  font-size: 14px;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#DDDDDD));
  background-image: -moz-linear-gradient(center top , #FFFFFF 0%, #DDDDDD 100%);
  &:hover {
    background-image: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#eeeeee));
    background-image: -moz-linear-gradient(center top , #FFFFFF 0%, #eeeeee 100%);
  }
  &.on {
    background-image: -webkit-gradient(linear, left top, left bottom, from(#EEEEEE), to(#FFFFFF));
    background-image: -moz-linear-gradient(center top , #EEEEEE 0%, #FFFFFF 100%);
    border-bottom: 0;
  }
}

.tab_content {
  padding: 10px 20px;
  font-size: 12px;
}
.tab_content_item {
  padding-top: 10px;
}

.tab_content_column {
  margin-bottom: 10px;
  fieldset{
    border: 1px solid #ddd;
    border-radius: 5px;
    legend{
      padding: 0 5px;
      margin-left: 20px;
      font-size: 14px;
      font-weight: bold;
      color: #999;
    }
  }
}

.fieldset_content {
  padding: 10px 10px 10px 20px;
}

.fieldset_column{
  margin-bottom: 5px;
}

.column_label_check {
  padding-left: 3px;
}

.column_label_radio {
  padding-right: 10px;
  padding-left: 3px;
}

.column_input {
  margin-bottom: 0px !important;
  font-size: 12px;
  color: #666 !important;
  &.error {
    border-color: #ff705a;
    &:focus{
      border-color: #ff705a;
      -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(255, 170, 102, 0.60);
    }
  }
}

.column_title, .column_title_input {
  display: inline-block;
  &:after {
    content: '：';
  }
}
.column_label_select:after {
  content: '：';
}
.column_title_input {
  vertical-align: middle;
  text-align: right;
}
.column_textarea {
  width: 430px;
  max-width: 430px;
  min-height: 200px;
  max-height: 250px;
}
.group_mail .column_title_input {
  width: 50px;
}
.after_tips {
  display: inline-block;
  padding-left: 5px;
  color: #999;
  vertical-align: middle;
}

.about, .update-content {
  .logo {
    margin-bottom: 10px;
    text-align: center;
  }
  p {
    text-align: center;
    margin: 0;
    line-height: 2em;
    font-size: 14px;
  }
}

.update-content {
  .changelog {
    margin: 10px 0;
    padding: 10px;
    border-radius: 3px;
    background: #eee;
    color: #999;
    text-align: left;
    p {
      text-align: left;
    }
  }
}

.help-content {
  max-height: 410px;
  padding-right: 10px;
  overflow: auto;
}

.donate {
  margin: 20px 0;
  color: #888;
  p {
    font-size: 13px;
  }
  .donate-link {
    text-decoration: underline;
  }
  .donate-coffee {
    cursor: pointer;
    color: #0088cc;
    text-decoration: underline;
    &:hover, &:active {
      color: #005580;
    }
  }
}